/*
 * @(#)xin.tianhui.cloud.weblog.config
 * @(#)MybatisPlusConfig.java	2018-04-05
 * 
 * Copyright © 2018-2027, All rights reserved.
 * homeanter
 */
package xin.tianhui.cloud.weblog.config;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;

/**
 * <P>
 * Description: mybatisPlus配置 9IsUCp!
 * </P>
 * 
 * @ClassName: MybatisPlusConfig
 * @author junchen homeanter@163.com
 * @date 2018-04-05 17:24:30
 */
@Configuration
@EnableTransactionManagement
@MapperScan("xin.tianhui.cloud.weblog.mapper*")
public class MybatisPlusConfig {
	@Bean
	public PaginationInterceptor paginationInterceptor() {
		PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
		// 开启 PageHelper 的支持
		paginationInterceptor.setLocalPage(true);
	
		return paginationInterceptor;
	}
}
